﻿using E_Commerce.Domain.Entities;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;


namespace E_Commerce.Domain.Interfaces
{
   public interface IProductCategoryRepository:IRepository<ProductCategory>
    {
        /// <summary>
        /// 显示
        /// </summary>
        /// <returns></returns>
        List<ProductCategory> GetProductCategories();
        /// <summary>
        /// 添加
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>

        Task<int> AddCateAsync(ProductCategory p);
        /// <summary>
        /// 修改
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        Task<int> UptCateAsync(ProductCategory p);
        /// <summary>
        /// 反填
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>

        Task<ProductCategory> FillCateAsync(int id);
        /// <summary>
        /// 删除
        /// </summary>
        /// <param name="id"></param>
        /// <returns></returns>
        Task<int> DeleCateAsync(int id);

    }
}
